package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;

import java.sql.Timestamp;

/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class CodePackages extends Model implements IValidator {
	/**
     * serialVersionUID
     */
    private static final long serialVersionUID = 3540981838415732156L;
    // Fields    
	private Long id; 
	private Long projectId; 
	private Integer serviceID; 
	private String packagename; 
	private String packageversion; 
	private Long packagesize; 
	private String sources;
	private String binaries;
	private String description; 
	private Long creator; 
	private Timestamp createtime; 
	private Long updater; 
	private Timestamp updatetime; 
	private String extendName; 
	private String classPaths; 
	private String language; 
		
	//default constructor
    public CodePackages() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public Long getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Long projectId) {
    	this.firePropertyChange("projectId", this.projectId, projectId);
    	this.projectId = projectId;
    }
    
	public Integer getServiceID() {
        return this.serviceID;
    }
    
    public void setServiceID(Integer serviceID) {
    	this.firePropertyChange("serviceID", this.serviceID, serviceID);
    	this.serviceID = serviceID;
    }
    
	public String getPackagename() {
        return this.packagename;
    }
    
    public void setPackagename(String packagename) {
    	this.firePropertyChange("packagename", this.packagename, packagename);
    	this.packagename = packagename;
    }
    
	public String getPackageversion() {
        return this.packageversion;
    }
    
    public void setPackageversion(String packageversion) {
    	this.firePropertyChange("packageversion", this.packageversion, packageversion);
    	this.packageversion = packageversion;
    }
    
	public Long getPackagesize() {
        return this.packagesize;
    }
    
    public void setPackagesize(Long packagesize) {
    	this.firePropertyChange("packagesize", this.packagesize, packagesize);
    	this.packagesize = packagesize;
    }
    
	public String getSources() {
        return sources;
    }

    public void setSources(String sources) {
        this.firePropertyChange("sources", this.sources, sources);
        this.sources = sources;
    }

    public String getBinaries() {
        return binaries;
    }

    public void setBinaries(String binaries) {
        this.firePropertyChange("binaries", this.binaries, binaries);
        this.binaries = binaries;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
    	this.firePropertyChange("description", this.description, description);
    	this.description = description;
    }
    
	public Long getCreator() {
        return this.creator;
    }
    
    public void setCreator(Long creator) {
    	this.firePropertyChange("creator", this.creator, creator);
    	this.creator = creator;
    }
    
	public Timestamp getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Timestamp createtime) {
    	this.firePropertyChange("createtime", this.createtime, createtime);
    	this.createtime = createtime;
    }
    
	public Long getUpdater() {
        return this.updater;
    }
    
    public void setUpdater(Long updater) {
    	this.firePropertyChange("updater", this.updater, updater);
    	this.updater = updater;
    }
    
	public Timestamp getUpdatetime() {
        return this.updatetime;
    }
    
    public void setUpdatetime(Timestamp updatetime) {
    	this.firePropertyChange("updatetime", this.updatetime, updatetime);
    	this.updatetime = updatetime;
    }
    
	public String getExtendName() {
        return this.extendName;
    }
    
    public void setExtendName(String extendName) {
    	this.firePropertyChange("extendName", this.extendName, extendName);
    	this.extendName = extendName;
    }
    
	public String getClassPaths() {
        return this.classPaths;
    }
    
    public void setClassPaths(String classPaths) {
    	this.firePropertyChange("classPaths", this.classPaths, classPaths);
    	this.classPaths = classPaths;
    }
    
	public String getLanguage() {
        return this.language;
    }
    
    public void setLanguage(String language) {
    	this.firePropertyChange("language", this.language, language);
    	this.language = language;
    }
    
   	public boolean validate(Object arg0) {
		//CodePackages codePackages = (CodePackages)arg0;
		//Validation.required("codePackages.id",codePackages.getId());
		return true;
	}
}